package servicesImpl;

import services.ProveedorService;
import dao.ProveedorDAO;
import dao.impl.ProveedorDAOImpl;
import dominio.Proveedor;

public class ProveedorServiceImpl implements ProveedorService {
	
	private static ProveedorServiceImpl instancia = null;
	
	private ProveedorServiceImpl(){
		pDAO = ProveedorDAOImpl.getInstancia();
	}
	
	public static ProveedorServiceImpl getInstancia(){
		if(instancia == null){
			instancia = new ProveedorServiceImpl();
		}
		return instancia;
	}
	
	private ProveedorDAO pDAO;
	
	public Proveedor findByID(Integer id){
		return pDAO.findByID(id);
	}
}
